﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_21_2021
{
    public enum RobotType
    {
        //炒菜机器人类
        CookRobot,
        //传菜机器人类
        DeliveryRobot
    }
    abstract class Robot
    {
        private string name;
        private RobotType type;
        public string Name { get => name; set => name = value; }
        public RobotType Type { get => type; set => type = value; }

        public Robot() { }
        public Robot(string name,RobotType type)
        {
            this.name = name;
            this.type = type;
        }

        public abstract void Working();

        public static implicit operator Robot(int v)
        {
            throw new NotImplementedException();
        }
    }
}
